package com.mine.androidlearn.common.base;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

import com.mine.androidlearn.GlobalApplication;

/**
 * 普通Fragment的基类
 *
 * @author mine
 * @version V1.0 2018/8/5 16:12
 */
public class BaseFragment extends Fragment {

    protected GlobalApplication mGlobalApplication; //application
    protected FragmentActivity mActivity; //宿主 Activity

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mGlobalApplication = (GlobalApplication) getActivity().getApplication();
        mActivity = getActivity();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();

    }
}
